package cn.echogo.framework.http;

import java.io.InputStream;
import java.lang.reflect.Type;

public interface ResponseEntity {

	public int getResultCode();
	
	public String getErrorCode();
	
	public String getMessage();
	
	public InputStream getDataStream();
	
	public String getDataText();
	
	public String getDataText(String charsetName);
	
	public <T> T getData(Class<T> clazz);
	
	public <T> T getData(Type type);
	
	public <T> T getData(String key, Class<T> clazz);
	
	public <T> T getData(String key, Type type);
	
}
